﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="filemanager.ascx.cs" Inherits="mwc_admin_controls_filemanager" %>
<div style="padding:10px;">
    <script type="text/javascript">
        function showInfo() {
            alert("OK");
        }
        </script>
        <p style="font-weight:bold;font-size:12pt;">File Manager: </p>
        <ACT:AsyncFileUpload ID="AsyncFileUpload1" 
            OnUploadedComplete="uploadComplete" 
            OnClientUploadComplete="showInfo" 
            runat="server" 
            ThrobberID="abc" 
            UploadingBackColor="LightBlue"
            ErrorBackColor="Red"
            CompleteBackColor="Green"
            UploaderStyle="Modern"
        />
        <asp:Image ID="abc" AlternateText="abc" ImageUrl="~/Templates/mwc_template/images/uploading.gif" runat="server" />
        <br />
        <asp:UpdatePanel ID="udpFM" runat="server">
            <ContentTemplate>
                <div style="width:98%;background:white;"><a><b>Upload path: </b></a> <asp:Label ID="thePathUpload" runat="server" /></div>
                <br />
                <asp:Panel ID="pnTree" runat="server" BackColor="White">
                    <table>
                    <tr>
                        <td>
                            <div style="overflow-y:scroll;width:150px;height:350px;border:solid 1px silver;">
                                <asp:TreeView ID="tvFolder" runat="server">
                                </asp:TreeView>
                            </div>
                        </td>
                        <td>
                            <div style="overflow-y:scroll;width:520px;height:350px;border:solid 1px silver;">
                                <asp:GridView id="gvFile" runat="server">
                                    <Columns>
                                        <asp:ImageField DataImageUrlField="imageURL" HeaderText="Image" ControlStyle-Width="150" ></asp:ImageField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                    </tr>
                    </table>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
        
        
</div>